package com.ricchieri.manage.bean;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

import org.springframework.security.core.context.SecurityContextHolder;

import com.ricchieri.common.BusinessSettings;

@ManagedBean(name = "viewLogoutMB")
@ViewScoped
public class LogoutManageBean extends GenericManageBean {
	private static final long serialVersionUID = -4431457088573798836L;
	
	public String logout(){
	       SecurityContextHolder.clearContext();
	       return BusinessSettings.LOGOUT;
	 }
}
